//
//  AppDelegate+ThirdRegister.m
//  Whatnet_iOS
//
//  Created by 北辰 on 2019/4/18.
//  Copyright © 2019 什么网络. All rights reserved.
//

#import "AppDelegate+ThirdRegister.h"
#import <UMCommon/UMCommon.h>


@implementation AppDelegate (ThirdRegister)
- (void)registerThirdSDK{
    //友盟crash日志或打点
    [UMConfigure initWithAppkey:@"5cbd20790cafb24415000fb3" channel:@"iOS"];
    [UMConfigure setLogEnabled:YES];
    
    //微信聊天                                                                                                                                                                          
    [[UMSocialManager defaultManager] setPlaform:UMSocialPlatformType_WechatSession appKey:@"wx73d718062516b195" appSecret:@"2e3319c7aecb50c9d81651eed2b68823" redirectURL:@""];
    
    //微信朋友圈
//    [[UMSocialManager defaultManager] setPlaform:UMSocialPlatformType_WechatTimeLine appKey:@"" appSecret:@"" redirectURL:@""];
    
    //QQ
    [[UMSocialManager defaultManager] setPlaform:UMSocialPlatformType_QQ appKey:@"1108821338" appSecret:@"vEZa35yCvsVVFOzz" redirectURL:@""];
    
    //微博
    [[UMSocialManager defaultManager] setPlaform:UMSocialPlatformType_Sina appKey:@"3927796458" appSecret:@"a43cdcccfd0de7afd84f78ea17ab570a" redirectURL:@"https://api.weibo.com/oauth2/default.html"];
}

@end
